package file;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file=new File("./demo.txt");
        Long len=file.length();//获取文件大小
        System.out.println(len);
        boolean d=file.canRead();
        boolean b=file.canWrite();
        boolean c=file.isHidden();
        System.out.println(d);
        System.out.println(b);
        System.out.println(c);
    }
}
